<p class="Paragraph">Exits a <span style="font-weight:bold;">Do...Loop</span>, <span style="font-weight:bold;">For...Next</span>, a Function procedure or a Sub procedure.</p>
<p class="Paragraph">Only valid within a <span class="T1">Do...Loop</span> statement to exit the loop. Program execution continues with the statement following the Loop statement. If <span class="T1">Do...Loop</span> statements are nested, the control is transferred to the loop in the next higher level.</p>
<p class="P2">Exit For</p>
<p class="Paragraph">Only valid within a <span class="T1">For...Next</span> loop to exit the loop. Program execution continues with the first statement following the <span class="T1">Next</span> statement. In nested statements, the control is transferred to the loop in the next higher level.</p>
<p class="P2">Exit Function</p>
<p class="Paragraph">Exits the <span class="T1">Function</span> procedure immediately. Program execution continues with the statement following the <span class="T1">Function</span> call.</p>
<p class="P2">Exit Sub</p>
<p class="Paragraph">Exits the <span class="T1">Sub</span> procedure immediately. Program execution continues with the statement following the <span class="T1">Sub</span> call.</p>